/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package net.jdcloud.HufuDatacubeService.model.modeltrainpost;

import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * ModelTrainPOSTBody
 */
@XmlRootElement(name = "modelTrainPOSTBody")
@XmlAccessorType(XmlAccessType.FIELD)

public class ModelTrainPOSTBody implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "model_args")
    @SerializedName("model_args")
    private String modelArgs = null;

    @XmlElement(name = "model_name")
    @SerializedName("model_name")
    private String modelName = null;

    @XmlElement(name = "model_desc")
    @SerializedName("model_desc")
    private String modelDesc = null;

    @XmlElement(name = "action")
    @SerializedName("action")
    private String action = null;

    @XmlElement(name = "algorithm_id")
    @SerializedName("algorithm_id")
    private String algorithmId = null;

    public ModelTrainPOSTBody modelArgs(String modelArgs) {
        this.modelArgs = modelArgs;
        return this;
    }

    /**
     * 模型参数
     * @return modelArgs
    **/

    public String getModelArgs() {
        return modelArgs;
    }

    public void setModelArgs(String modelArgs) {
        this.modelArgs = modelArgs;
    }

    public ModelTrainPOSTBody modelName(String modelName) {
        this.modelName = modelName;
        return this;
    }

    /**
     * 模型名称
     * @return modelName
    **/

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public ModelTrainPOSTBody modelDesc(String modelDesc) {
        this.modelDesc = modelDesc;
        return this;
    }

    /**
     * 模型描述
     * @return modelDesc
    **/

    public String getModelDesc() {
        return modelDesc;
    }

    public void setModelDesc(String modelDesc) {
        this.modelDesc = modelDesc;
    }

    public ModelTrainPOSTBody action(String action) {
        this.action = action;
        return this;
    }

    /**
     * 行为
     * @return action
    **/

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public ModelTrainPOSTBody algorithmId(String algorithmId) {
        this.algorithmId = algorithmId;
        return this;
    }

    /**
     * 算法id
     * @return algorithmId
    **/

    public String getAlgorithmId() {
        return algorithmId;
    }

    public void setAlgorithmId(String algorithmId) {
        this.algorithmId = algorithmId;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ModelTrainPOSTBody modelTrainPOSTBody = (ModelTrainPOSTBody) o;
        return Objects.equals(this.modelArgs, modelTrainPOSTBody.modelArgs) &&
        Objects.equals(this.modelName, modelTrainPOSTBody.modelName) &&
        Objects.equals(this.modelDesc, modelTrainPOSTBody.modelDesc) &&
        Objects.equals(this.action, modelTrainPOSTBody.action) &&
        Objects.equals(this.algorithmId, modelTrainPOSTBody.algorithmId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(modelArgs, modelName, modelDesc, action, algorithmId);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ModelTrainPOSTBody {\n");
        
        sb.append("    modelArgs: ").append(toIndentedString(modelArgs)).append("\n");
        sb.append("    modelName: ").append(toIndentedString(modelName)).append("\n");
        sb.append("    modelDesc: ").append(toIndentedString(modelDesc)).append("\n");
        sb.append("    action: ").append(toIndentedString(action)).append("\n");
        sb.append("    algorithmId: ").append(toIndentedString(algorithmId)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
          return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}

